package com.lianqi.emcpframework.ddd.gencode.creator.support.writer;

import java.util.List;
import java.util.Map;

import javax.lang.model.element.AnnotationMirror;

import com.lianqi.emcpframework.ddd.gencode.creator.support.meta.CreatorSetterMeta;
import com.squareup.javapoet.MethodSpec;
import com.squareup.javapoet.TypeSpec;

public interface CreatorWriter {
    void writeTo(TypeSpec.Builder builder, MethodSpec.Builder acceptMethodBuilder, List<CreatorSetterMeta> setterMetas);

    void writeTo(TypeSpec.Builder builder, MethodSpec.Builder acceptMethodBuilder, List<CreatorSetterMeta> setterMetas,
        Map<String, AnnotationMirror> validMap);

}
